Skip to content

feat: customize mapping annotation in kubernetes dependent resource #2075

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Oct 4, 2023

Conversation

csviri
Copy link
Collaborator

@csviri csviri commented Oct 3, 2023

The implementation does not model very nicely the situation but makes it doable relatively easily.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 3, 2023
@csviri csviri requested a review from metacosm October 3, 2023 12:18
@csviri csviri marked this pull request as ready for review October 3, 2023 12:18
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 3, 2023
@openshift-ci openshift-ci bot requested review from adam-sandor and andreaTP October 3, 2023 12:18
private boolean useDefaultAnnotationsToIdentifyPrimary() {
return !(this instanceof SecondaryToPrimaryMapper) && !garbageCollected && isCreatable();
private boolean useAnnotationsToIdentifyPrimary() {
return !garbageCollected && isCreatable();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was the check on SecondToPrimaryMapper implementation removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Made an improvement on naming.)

So it has now different definition a little, it is not just for the default annotation. Before it was using default annotation and that was checked. Now it check if it does not use owner reference for that.

csviri added 9 commits October 4, 2023 15:01
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
Signed-off-by: Attila Mészáros <csviri@gmail.com>
@csviri csviri force-pushed the customize-annotation-for-resource-mapper branch from 54389d3 to a060844 Compare October 4, 2023 13:01
@csviri csviri merged commit 45b29cd into next Oct 4, 2023
@csviri csviri deleted the customize-annotation-for-resource-mapper branch October 4, 2023 14:26
csviri added a commit that referenced this pull request Oct 4, 2023
…2075)



Signed-off-by: Attila Mészáros <csviri@gmail.com>
csviri added a commit that referenced this pull request Oct 18, 2023
…2075)



Signed-off-by: Attila Mészáros <csviri@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Custom Referencing of Primary Resource From Kubernetes Dependent Resource
2 participants